package cn.net.dpi.shp.model.entity;

import cn.net.dpi.shp.handler.MultiPointTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import org.locationtech.jts.geom.MultiPoint;

/**
 * 道路变更点实体
 *
 * @author ake
 * @since 2024-12-27
 */
@Getter
@Setter
@TableName(value = "hd_link_change", autoResultMap = true)
public class HdLinkChange extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 道路编号
     */
    private String linkId;

    /**
     * 变化编号
     */
    private String changeId;

    /**
     * 距离变更点距离道路起点的距离，
     */
    private Double distance;

    /**
     * 道路功能等级
     */
    private Long linkFc;

    /**
     * 最高限速
     */
    private String speedMax;

    /**
     * 路面材质
     */
    private Long material;

    /**
     * 道路类型
     */
    private String linkType;

    private String time;

    /**
     * 限速类型
     */
    private String speedType;

    /**
     * 最低限速
     */
    private String speedMin;

    @TableField(typeHandler = MultiPointTypeHandler.class)
    private MultiPoint geometry;

    private Long fileId;

    private String version;

    private Integer versionFlag;
}
